package bean;

/**
 * @param
 * @author oyz
 * @version 1.0
 * @description: TODO  Dao、Service，是我们平常开发经常使用的场景。在 UserService 中注入
 *                  UserDao，这样就能体现出 Bean 属性的依赖了。
 * @date 2022/3/14 21:14
 */
public class UserService {

    private String name;

    private UserDao userDao;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void queryUserInfo(){
        System.out.println("查询用户信息:"+userDao.getIocMap(name));
    }
}
